package com.spring.boot.reflect;

import java.util.Arrays;

public class TestSimple {

    private static Emp emp = new Emp();

    public static void main(String[] args) throws Exception{
        String attName = "emp.dept.company.name";
        String value = "5632";
//        Integer[] value = new Integer[]{12,32,22};这样传参是错误的
        //只能传String
//        String[] value = new String[]{"11.3","2.2","33.965"};
        BeanOperate bo = new BeanOperate(emp,attName,value);

        System.out.println(emp.getDept().getCompany().getName());

    }
}
